#include"process.h"
#define NUM 101
void ProcessOn()
{
printf("\n");
int cnt=0;
char bar[NUM];
memset(bar,'\0',sizeof(bar));
  const char *lable="|\\-/";
  while(cnt<=100)
  {
  printf("\033[42;34m[%-100s][%d%%][%c]\033[0m\r",bar,cnt,lable[cnt%4]);
  fflush(stdout);
  bar[cnt++]=STYLE;
  usleep(50000);
  }
  printf("\n");
}
